﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PMSSys
{
    static class uiUtility
    {
        public static DialogResult confirmSaveDialog()
        {
            DialogResult result = MessageBox.Show("Do you want to Save chanages?",
		        "Save Changes",
		        MessageBoxButtons.YesNoCancel,
		            MessageBoxIcon.Question);
            return result;
        }
        public static DialogResult confirmLogoutDialog()
        {
            DialogResult result = MessageBox.Show("Do you want to logout of the system ?",
                "Logout",
                MessageBoxButtons.YesNo,
                    MessageBoxIcon.Question);
            return result;
        }
        public static DialogResult confirmExit()
        {
            DialogResult result = MessageBox.Show("Do you want to exit the system?",
                            "Save Changes",
                            MessageBoxButtons.YesNo,
                                MessageBoxIcon.Question);
            return result;
                
        }
        public static DialogResult confirmDelete(string str)
        {
            DialogResult result = MessageBox.Show(str,"Confirm", 
                MessageBoxButtons.YesNo, 
                    MessageBoxIcon.Information);
            return result;
        }
        public static DialogResult validDate(string str)
        {
            DialogResult result = MessageBox.Show("Please Enter a Valid Date", str,
                MessageBoxButtons.OK, MessageBoxIcon.Warning);
            return result;
        }
        public static ToolTip tooltips()
        {
            ToolTip t1 = new ToolTip();
            t1.AutoPopDelay = 5000;
            t1.InitialDelay = 700;
            t1.ReshowDelay = 500;

            return t1;
        }

    }
}
